#include<iostream>
using namespace std;
int main()
{
	int arr[10] = { 4,3,6,9,1,2,10,8,7,5 };
	for (int a = 1; a <= 9; a++)
	{
		for (int b = 1; b <= 9; b++)
		{
			if (arr[b - 1] > arr[b])
			{
				int temp = arr[b - 1];
				arr[b - 1] = arr[b];
				arr[b] = temp;
			}
		}
	}

	for (int i = 0; i < 10; i++)
	{
		cout << arr[i] << endl;
	}


	system("pause");
	return 0;
}